import 'package:flutter/material.dart';
import 'package:flutter_scaffold/tabbar/itemview.dart';

class SelectedView extends StatelessWidget {
  final ItemView item;
  SelectedView({Key key, this.item}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    TextStyle textStyle = Theme.of(context).textTheme.headline5;
    return Card(
      color: Colors.white,
      child: Column(
        mainAxisSize: MainAxisSize.min,
        crossAxisAlignment: CrossAxisAlignment.center,
        children: [
          Icon(
            item.icon,
            size: 128.0,
            color: textStyle.color,
          ),
          Text(
            item.title,
            style: textStyle,
          )
        ],
      ),
    );
  }
}
